module.exports.getTimeText = function(_time){
	if(_time!=""&&_time!=null&&_time!="undefined"){
		var _month =_time.getMonth() + 1;
		return _time.getFullYear() + "-"  + 
			(_month < 10 ? "0" + _month:_month);
	}
	
}
module.exports.getTime = function(_ms){
	_ms=parseInt(_ms);
	var _time=new Date(_ms);
	if(_time!=""&&_time!=null&&_time!="undefined"){
		var _month =_time.getMonth() + 1;
		var _day =_time.getDate();
		var _hours=_time.getHours();
		var _min=_time.getMinutes();
		var _sec=_time.getSeconds();
		return _time.getFullYear() + "-" + 
			(_month < 10 ? "0" + _month:_month) + "-" +
			(_day < 10 ? "0" + _day:_day)+" "+
			(_hours< 10?"0"+_hours:_hours)+":"+
			(_min<10?"0"+_min:_min)+":"+
			(_sec<10?"0"+_sec:_sec);
	}
	
}